package ws.very.util.kaptcha

import java.util.Properties
import com.google.code.kaptcha.util.Config;
import com.google.code.kaptcha.Producer

object KaptchaProducer {
  //config ref https://code.google.com/p/kaptcha/wiki/ConfigParameters
  def initConf(parms:(S,S)*):Producer={
    //import com.google.code.kaptcha.Constants._
     val p = new Properties()
     parms.foreach{case (k,v)=>p.setProperty(k,v)}
     (new Config(p)).getProducerImpl
  }
}